import request from '@/utils/request'
import defaultSettings from '@/settings'

export const apiUrlConfig = {
    queryUrl: `${defaultSettings.ctx.cnapsApp}/clearAccountManage/autoManagement/ClearingAccountAutoManagementApplyEntry/search`,
}

export function quota(params) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/clearAccountManage/autoManagement/ClearingAccountAutoManagementApplyEntry/quota`,
        method: 'get',
        params
    })
}
// 签约弹框页面提交
export function save(data) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/clearAccountManage/autoManagement/ClearingAccountAutoManagementApplyEntry/save`,
        method: 'post',
        data
    })
}
// 恢复额度弹框页面提交
export function quotasave(data) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/clearAccountManage/autoManagement/ClearingAccountAutoManagementApplyEntry/quotasave`,
        method: 'post',
        data
    })
}

// 撤销操作按钮请求
export function cancleUrl(data) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/clearAccountManage/autoManagement/ClearingAccountAutoManagementApplyEntry/cancle`,
        method: 'post',
        data
    })
}